{% extends 'base.html' %}
{% block main %}

    <div class="container">
    <h1>项目列表</h1>
    <div>
    <a style="margin: 10px 0;" class="btn btn-primary" href="{{ url_for('addproject') }}">添加</a>
    </div>
    <table class="table table-bordered">
    <thead>
    <tr>
        <th>ID</th>
        <th>项目名称</th>
        <th>仓库地扯</th>
        <th>环境</th>
         <th>路径</th>
          <th>关联服务器</th>
        <th>发布任务</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {% for row in pallroject %}
    <tr>
        <th>{{ row.id }}</th>
        <th>{{ row.project }}</th>
        <th>{{ row.repo }}</th>
        <th>{{ row.env }}</th>
        <th>{{ row.path }}</th>
        <th>{{ row.servers }}</th>
        <th><a href='/task/{{ row.id }}'>发布任务</a></th>
        <th>编辑 <a href="/delpro/{{ row.id }}">删除</a></th>
    </tr>
    {% endfor %}
    </tbody>
    </table>
    </div>
{% endblock %}